package cn.client.data.remoteData.bean

import com.squareup.moshi.JsonClass


/**
 * 会话消息
 */
@JsonClass(generateAdapter = true)
data class ChatMessage(
    val senderId: String,   // 发送者
    val senderName: String,   // 发送者名称
    val receiverId: String,  // 接收者
    val content: String  // 内容
)

/**
 * websocket返回的消息
 */
@JsonClass(generateAdapter = true)
data class WebSocketMessage(
    val senderId: String,
    val senderName: String,
    val receiverId: String,
    val content: String,
    val senderTime: String
)

